﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SAM_Edu.dao;
using SAM_Edu.entity;

namespace SAM_Edu.control
{
    class Startup
    {
        public static string checkLicense()
        {

            string status = daoLicenseKey.CheckLicense();
            if (status.Count() > 0)
            {


                return status;
            }
            else
            {
                return "";
            }

        }
        public static License getLicensee()
        {
            License l;
            l = daoLicense.GetLicensee();

            return l;

        }
        public static DateTime validateLicense()
        {
            return daoLicenseKey.ValidateLicense();
        }
        public static bool updateLastActivationDate(string licensekey)
        {
            return daoLicenseKey.updateLastActivationDate(licensekey);
        }
    }
}
